package gob.inei.enaho.view.enaho01;

import java.sql.SQLException;

import util.form.respuesta.RegistroImpl;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

public class Cap100_FinFragment 
extends AbstractCap100Fragment {
	
	@Override
	protected void procesarOnCreateViewDefault(ViewGroup viewGroup, Button btn) throws Exception {
		btn.setText("Ir a Cap200");
		btn.setOnClickListener(new View.OnClickListener() {			
			@Override
			public void onClick(View v) {
				RegistroImpl r = new RegistroImpl();
				r.agregar("Completo", "1");
				try {
					ena01Cap100Service.guardar_actualizar(hogar, r);
				} catch (SQLException e) {
					getCuestionarioContext().manejarExcepcion(e);
				}
				salir();
			}
		});
	}
		
}